package org.colcon.web.client.ui;

import org.colcon.web.client.Collective_Congress;

import com.google.gwt.user.client.ui.VerticalPanel;

public class MainPanel extends VerticalPanel 
{
	private HeaderPanel headerPanel;
	private BodyPanel bodyPanel;
	
	public MainPanel(Collective_Congress client)
	{
		setStyleName("main");
		
		bodyPanel = new BodyPanel();
		bodyPanel.add(new HomePanel(client));
		
		headerPanel = new HeaderPanel(client);
		
		add(headerPanel);
		add(bodyPanel);
	}
	
	public HeaderPanel getHeaderPanel()
	{
		return headerPanel;
	}
	
	public BodyPanel getBodyPanel()
	{
		return bodyPanel;
	}
}
